﻿using System;
using System.Linq;

namespace ch02.binary.module
{
    using Expr = Object;

    public struct Code
    {
        internal Locals[] Locals;
        private Expr Expr;

        internal ulong GetLocalCount()
        {
            return Locals.Aggregate(0UL, (current, locals) => current + (locals.N));
        }
    }
}